export const radios = Object.freeze([
  {
    label: 'Column',
    value: 'column'
  },
  {
    label: 'Timeline',
    value: 'timeline'
  }
])
export const units = Object.freeze([
  {
    label: 'Year',
    value: 'Year'
  },
  {
    label: 'Month',
    value: 'Month'
  },
  {
    label: 'Week',
    value: 'Week'
  },
  {
    label: 'Day',
    value: 'Day'
  },
  {
    label: 'Hour',
    value: 'Hour'
  }
])
export const topFormats = Object.freeze([
  {
    label: 'Jan 01,2019',
    value: 'MMM dd, yyyy'
  },
  {
    label: 'Mon Jan01, "19',
    value: 'EEE MMM dd, "yy'
  },
  {
    label: 'Mon Jan 01',
    value: 'EEE MMM dd'
  }

])
export const bottomFormats = Object.freeze([
  {
    label: 'M',
    value: ''
  },
  {
    label: 'Mon',
    value: 'EEE'
  },
  {
    label: '01',
    value: 'dd'
  }
])

export const initialValue = {
  columns: [
    // {
    //   headerText: 'ID',
    //   show: false,
    //   field: undefined,
    //   width: 80,
    //   taskField: 'id'
    // },
    {
      headerText: 'Task Name',
      show: false,
      field: undefined,
      taskField: 'name'
    },
    {
      headerText: 'Resources',
      show: false,
      field: undefined
    },
    {
      headerText: 'Start Date',
      show: false,
      field: undefined,
      taskField: 'startDate'
    },
    {
      headerText: 'End Date',
      show: false,
      field: undefined,
      taskField: 'endDate'
    },
    {
      headerText: 'Duration',
      show: false,
      field: undefined,
      taskField: 'duration'
    },
    {
      headerText: 'Progress',
      show: false,
      field: undefined,
      taskField: 'progress'
    }
    // {
    //   headerText: 'Dependency',
    //   show: false,
    //   field: undefined,
    //   taskField: 'dependency'
    // }

  ],

  group: {
    headerText: 'Group',
    show: false,
    field: undefined
  },

  topTier: {
    show: true,
    count: 1,
    format: 'MMM dd, yyyy',
    unit: 'Year'
  },
  bottomTier: {
    show: true,
    count: 1,
    format: '',
    unit: 'Day'
  }
}

export const taskFields = Object.freeze({
  id: 'id',
  name: 'name',
  startDate: 'startDate',
  endDate: 'endDate',
  duration: 'duration',
  progress: 'progress',
  dependency: 'dependency',
  child: 'subtasks'
})
